<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>背景_logo替换文本</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        h1{
            width: 500px;
            overflow: hidden;
        }
        h1 a{
            display: block;
            background: url(../img/logo.png) no-repeat;
            width: 178px;
            height: 60px;
            text-indent: -10em;
        }
    </style>
</head>
<body>
    <h1>
        <a href="http://www.baidu.com/">
            Baidu，百度，搜索
        </a>
    </h1>
</body>
</html>